<?php if(!$is_mobile){  ?>
<style>
html,body{
    height:100%;
    width:50%;
    margin:0 auto;
}
.nav{
    position:fixed;
    width:25%;
}
.morder_nav{
    position:absolute;
}
</style>
<?php } ?>

 <style>
        .grid-main{
            display: -webkit-box; /* 老版本语法: Safari, iOS, Android browser, older WebKit browsers. */
            display: -webkit-flex; /* 新版本语法: Chrome 21+ */
            display: flex; /* 新版本语法: Opera 12.1, Firefox 22+ */
            -webkit-flex-wrap: wrap;
            flex-wrap: wrap;
            padding:10px;
            overflow-y:scroll;
        }
        .grid-main .item {
            display: block;
            -webkit-box-flex: 0 0 33.333%;
            -webkit-flex: 0 0 33.333%;
            flex: 0 0 33.333%;
            text-align:center;
            background:#fff;padding:10px;box-sizing: border-box;border:2px #F8F8F8 solid;position:relative;
        }
        .grid-main .itemnew {
            display: block;
            -webkit-box-flex: 0 0 50%;
            -webkit-flex: 0 0 50%;
            flex: 0 0 50%;
            text-align:center;
            background:#fff;padding:10px;box-sizing: border-box;border:2px #F8F8F8 solid;position:relative;
        }
        .grid-main .badge {
            position: absolute;color:#fff;background:#E74135;top:10px;right:10px;font-size:10px;
            border:2px red solid;border-radius: 50%;padding:0px;height:30px;width:30px;line-height: 30px;
            font-size:10px;white-space:nowrap;
        }
        .grid-main .icon {
            font-size:40px;color:#e6207a;
        }
        .grid-main img {
            width:50px;
            height:50px;
        }
        .sub-title {
            padding: 5px 10px 0 10px;
            display: block;
            font-size: 15px;
            color:#7D7B82;
        }
    </style>
<div id="app" class="mainlist">
    <div class="grid-main" >
    <a 
        href="/mobile/moneylists/moneydetail"
        class="item">
        <i class="icon iconfont icon-shouyi">
        </i>
        <div style="color:#999;">我的<?php echo C('YONGJIN_NAME');?></div>
    </a>
<!--    <a 
        href="/mobile/moneylists/lockedmoney"
        class="item">
        <i class="icon iconfont icon-redpacket">
        </i>
        <div style="color:#999;">我的锁定<?php echo C('YONGJIN_NAME');?></div>
    </a>-->
<!--    <a href="/mobile/transfersmoney" class="item">
        <i class="icon iconfont icon-zhuanzhang">
        </i>
        <div style="color:#999;"><?php echo C('YONGJIN_NAME');?>转账</div>
    </a>-->
    <?php if($memberinfo['grade_id']<5){ ?>
    <a 
        href="/mobile/withdraw/index"
        class="item">
        <i class="icon iconfont icon-tixian">
        </i>
        <div style="color:#999;"><?php echo C('YONGJIN_NAME');?>提现</div>
    </a>
    <?php } ?>
<!--<a 
        href="/mobile/moneylists/cash"
        class="item">
        <i class="icon iconfont icon-moneybag">
        </i>
        <div style="color:#999;">我的<?php echo C('CASH_NAME');?></div>
    </a>-->
    

    
    
<!--    <a href="/mobile/withdraw/lists" class="item">
        <i class="icon iconfont icon-record">
        </i>
        <div style="color:#999;">提现记录</div>
    </a>-->
<!--    <a 
        <?php if($is_wechat){ ?>
        href="/mobile/charge/chargescore"
        <?php }else{ ?>
        onclick="showtixian()"
        <?php } ?>
        class="item">
        <i class="icon iconfont icon-chongzhi">
        </i>
        <div style="color:#999;">充值</div>
    </a>-->
<!--    <a 
        href="/mobile/moneylists/score"
        class="item">
        <i class="icon iconfont icon-text">
        </i>
        <div style="color:#999;">我的<?php echo C('SCORE_NAME');?></div>
    </a>-->
    <?php if($memberinfo['grade_id']>=6) { ?>
        
    <a 
        href="/mobile/moneylists/area"
        class="item">
        <i class="icon iconfont icon-text">
        </i>
        <div style="color:#999;">区域奖励</div>
    </a>
    <?php } ?>

    <a 
        href="/mobile/moneylists/stock"
        class="item">
        <i class="icon iconfont icon-warehouse">
        </i>
        <div style="color:#999;">库存明细</div>
    </a>
    <a 
        href="/mobile/cart/tihuo"
        class="item">
        <i class="icon iconfont icon-warehouse">
        </i>
        <div style="color:#999;">提货</div>
    </a>
<!--     <a 
        href="/mobile/cart/buhuo"
        class="item">
        <i class="icon iconfont icon-warehouse">
        </i>
        <div style="color:#999;">补货</div>
    </a> -->
    
    
    <a 
        href="/mobile/cart/jiameng"
        class="item">
        <i class="icon iconfont icon-record">
        </i>
        <div style="color:#999;">申请代理</div>
    </a>

    <a 
        href="/mobile/article/lists"
        class="item">
        <i class="icon iconfont icon-tuwen">
        </i>
        <div style="color:#999;">商学院</div>
    </a>


   <a 
        href="/mobile/user/daili/?dj=1"
        class="item">
        <i class="icon iconfont icon-tuandui">
        </i>
        <div style="color:#999;">我的<?=C('XIAJI_NAME')?></div>
    </a> 

    <a 
        href="/mobile/qrcode/index"
        class="item">
        <i class="icon iconfont icon-qrcode">
        </i>
        <div style="color:#999;">推广</div>
    </a>
 
    <a 
        id="exit"
        style="display: none;"
        onclick="quit()"
        class="item">
        <i class="icon iconfont icon-exit">
        </i>
        <div style="color:#999;">退出</div>
    </a>

    <!--
    <a 
        href="/mobile/zhengshu"
        class="item">
        <i class="icon iconfont icon-zhengshu">
        </i>
        <div style="color:#999;">代理证书</div>
    </a>
    -->
    <!-- <?php if($is_wechat){ ?>
            <?php if($memberinfo['openid']){ ?>
     <a 
        href="javascript:unbind();"
        class="item">
        <i class="icon iconfont icon-jiebang">
        </i>
        <div style="color:#999;">解绑微信</div>
    </a>
            <?php }else{ ?>
    <a 
        href="javascript:bind();"
        class="item">
        <i class="icon iconfont icon-bangding">
        </i>
        <div style="color:#999;">绑定微信</div>
    </a>
            <?php } ?>
            <?php } ?>
    <a href="/mobile/login/quit" class="item">
        <i class="icon iconfont icon-tuichu">
        </i>
        <div style="color:#999;">退出登录</div>
    </a>
    <a href="/mobile/login/changepw" class="item">
        <i class="icon iconfont icon-mima">
        </i>
        <div style="color:#999;">修改密码</div>
    </a> -->
  </div>

  <!-- <li  class="mlogin_but" style="margin-top: 10px;">
        <a onclick="quit()" style="background: #e6207a;" >退出登录</a>
    </li> -->

</div>

<!-- <li class="mlogin_but" style="margin-top: 30px;">
    <a style="background-color: #e6207a;" href="/mobile/qrcode/index">我的推广二维码</a>
</li> -->


<link rel="stylesheet" href="/Static/mobile/vant/index.css">
<script src="/Static/mobile/vant/vue.min.js"></script>
<script src="/Static/mobile/vant/vant.min.js"></script>

<script>
    document.addEventListener("plusready",function(){
        $('#exit').show();
    },false);

    function quit () {
        vant.Dialog.confirm({
            title: '提示',
            message: '确认退出帐号吗?'
        }).then(() => {
            plus.storage.removeItem('token');
            $.get('/mobile/login/quit').then(function(){
                window.location.href='/mobile/index';
            });
        }).catch(() => {
        // on cancel
        });
    }
/*
 * quxiaotuikuan
 */
 function bind(){
	    layer.open({
	        content: "亲,你确定要绑定当前登录的微信号吗?",
	        btn: ['确定', '取消'],
	        yes: function(index){
	        	AjaxUrl('/mobile/bind/wechat');
	            layer.close(index);
	        }
	    });
	}
 function unbind(){
	    layer.open({
	        content: "亲,你确定要取消绑定已绑定的微信吗?",
	        btn: ['确定', '取消'],
	        yes: function(index){
	        	AjaxUrl('/mobile/bind/unwechat');
	            layer.close(index);
	        }
	    });
	}
    function showtixian(){
        layer.open({
            title: [
              '提醒',
              'background-color: #FF4351; color:#fff;'
            ],
            content: '为了您的资金安全，该操作需在微信端进行',
            btn: ['确定']
          });
    }
	
</script>
<style>
    .van-dialog__confirm, .van-dialog__confirm:active {
        color:#e6207a !important;
    }
</style>